package ltd.ninefish.framework.systemapi.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import ltd.ninefish.framework.core.dto.BaseDto;

import java.time.LocalDateTime;

/**
 * @author zhaoxiubin
 * create-time 2024-01-15 20:18
 * description 系统访问记录数据传输对象
 **/

public class SysLoginInfoDto extends BaseDto
{
    private static final long serialVersionUID = 1746869821895913473L;

    /** 用户账号 */
    private String userName;

    /** 状态 0成功 1失败 */
    private String status;

    /** 地址 */
    private String ipaddr;

    /** 描述 */
    private String msg;

    /** 访问时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime accessTime;

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getStatus()
    {
        return status;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getIpaddr()
    {
        return ipaddr;
    }

    public void setIpaddr(String ipaddr)
    {
        this.ipaddr = ipaddr;
    }

    public String getMsg()
    {
        return msg;
    }

    public void setMsg(String msg)
    {
        this.msg = msg;
    }

    public LocalDateTime getAccessTime()
    {
        return accessTime;
    }

    public void setAccessTime(LocalDateTime accessTime)
    {
        this.accessTime = accessTime;
    }

    @Override
    public String toString() {
        return "SysLoginInfoDto{" +
                "id=" + getId() +
                ", userName='" + userName + '\'' +
                ", status='" + status + '\'' +
                ", ipaddr='" + ipaddr + '\'' +
                ", msg='" + msg + '\'' +
                ", accessTime=" + accessTime +
                '}';
    }
}
